<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        div{
            width: 200px;
            height: 200px;
            border: 1px solid pink;
            margin: 100px auto;
            overflow: hidden;
        }
        div::before{
            display: block;
            content: "黑马";
            width: 100%;
            height: 100%;
            background-color: skyblue;
            transform: rotate(90deg);
            transform-origin: bottom left;
            transition: all 0.4s;
        }
        div:hover::before{
            transform: rotate(0);
        }

        p{
            margin: 100px;
            width: 100px;
            height: 100px;
            background-color: blue;
            transition: all 2s;
        }
        p:hover{
            transform: rotate(360deg) scale(2,2);
        }
    </style>
</head>
<body>
    <div></div>

    <p></p>
</body>
</html>